<?php
class CouponAction extends BaseAction{
	// 首页
	public function index(){
		/**用来处理带有条件的查询**/
		$partner_id = $_SESSION['qp_id'];
		
		$pdata = D('Partner','Admin')->selectPartnerInfo(array('porppid'=>$partner_id,'psort'=>$map['psort']),'id',null,null);
		$ary_pids = getSubByKey($pdata,"id");
		$couponpagedata = model('Coupon')->search4SH(array('pid'=>$ary_pids,'gid'=>$goods_id) ,'check_time desc', 4);
		
		$this->assign('couponpagedata', $couponpagedata);
		//$this->assign('brandExtInfo', $brandExtInfo);
		
		$this->display();
	}

}

?>